<style>
.text-error{color:red;}
</style>
<form class="form-horizontal" name="CtrlForm" role="form" novalidate="novalidate" ng-submit="submit()" ng-controller='ContactEditCtrl' style="margin:0 auto;">
	<div ng-repeat="list in contact | orderBy: 'id'" ng-if="contact.length>0 && list">
	<div class="form-group has-feedback">
	  <div class="col-md-3">
		<input type="text" class="form-control" placeholder='请输入名称' ng-model='list.meta' style="text-align:right;">
	  </div>
	  <div class="col-md-4">
		<input type="text" class="form-control" placeholder='请输入内容' ng-model='list.content'>
	  </div>
	  <div class="col-md-2">
		<a class="btn btn-default" ng-click="delLine(list,$index)" style="text-align"><span class="glyphicon glyphicon-remove" aria-hidden="true" style="margin-right:0;"></span></a>
		<a class="btn btn-primary"  style="cursor:default;" ng-show="list.id">
		  已存 <span class="badge"><i class="fa fa-database" aria-hidden="true" style="margin-right:0;"></i></span>
		</a>
		<a class="btn btn-danger"  style="cursor:default;" ng-hide="list.id">
		  未存 <span class="badge"><i class="fa fa-save" aria-hidden="true" style="margin-right:0;"></i></span>
		</a>
	  </div>
	</div>
	</div>


   <div class="form-group has-feedback">  
      <div class="col-md-7" style="text-align:right;">		
        <button type="submit" class="btn btn-primary" ng-disabled="CtrlForm.$pristine || CtrlForm.$invalid">保存</button>
      </div>
      <div class="col-md-2" style="text-align:left;">		
		<a class="btn btn-default" ng-click="addLine()"><span class="glyphicon glyphicon-plus" aria-hidden="true" style="margin-right:0;"></span></a>
      </div> 
   </div>
</form>